package com.hilihili.mapper;


import com.hilihili.domain.entity.Favorites;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FavoritesMapper
{
    public List<Favorites> selectFavoritesList(Long createAt);

    public int updateFavorites(Favorites favorites);

    public int saveFavorites(Favorites favorites);

    public int deleteFavorites(Long id);

    public int updateFavoritesRank(Favorites favorites);

    void batchUpdateFavoritesRank(@Param("favoritesList") List<Favorites> favoritesList);

    List<Favorites> selectDefaultFavorites(@Param("createAt")Long createAt);
}
